-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Fix props for TokenIcon component #5493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: d9a63a6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
Merge activity
|
dfe1f8d to
3ee4b1d
Compare
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5493 +/- ##
=======================================
Coverage 43.85% 43.85%
=======================================
Files 1075 1075
Lines 55944 55944
Branches 3907 3908 +1
=======================================
Hits 24534 24534
Misses 30727 30727
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing the issue where properties were not being passed correctly to the `TokenIcon` component.
### Detailed summary
- Updated the return statement in the `Token/icon.tsx` file.
- Changed `return <img src={iconQuery.data} alt={restProps.alt} />;` to `return <img src={iconQuery.data} {...restProps} alt={restProps.alt} />;` to ensure all `restProps` are included in the rendered `img` element.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
3ee4b1d to
d9a63a6
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on fixing an issue where props were not being passed correctly to the
TokenIconcomponent.Detailed summary
Token/icon.tsxfile.<img src={iconQuery.data} alt={restProps.alt} />to<img src={iconQuery.data} {...restProps} alt={restProps.alt} />to ensure allrestPropsare applied to theimgelement.